/****************************************************
    文件：LoopL.cs
	作者：kk
    邮箱: 627515104@qq.com
    日期：2020/8/26 17:12:51
	功能：Nothing
*****************************************************/

using UnityEngine;

public class LoopL : MonoBehaviour
{
    private Animation ani;

    private void Awake()
    {
        ani = transform.GetComponent<Animation>();
    }

    private void Start()
    {
        if (ani != null)
        {
            InvokeRepeating("PlayL",0,20);
        }
    }

    private void PlayL()
    {
        if(ani!=null)
        ani.Play();
    }
}